package com.ad_hccm.service.impl.TreatmentHistory;

import com.ad_hccm.dao.TreatmentHistory.OtherDiseaseTwoDao;
import com.ad_hccm.domain.TreatmentHistory.OtherDiseaseTwo;
import com.ad_hccm.service.TreatmentHistory.OtherDiseaseTwoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO 其他疾病治疗史ServiceImpl
 */
@Service
public class OtherDiseaseTwoServiceImpl implements OtherDiseaseTwoService {
    @Autowired
    private OtherDiseaseTwoDao otherDiseaseTwoDao;

    @Override
    public boolean save(OtherDiseaseTwo otherDiseaseTwo) {
        return otherDiseaseTwoDao.save(otherDiseaseTwo);
    }

    @Override
    public boolean update(OtherDiseaseTwo otherDiseaseTwo) {
        return otherDiseaseTwoDao.update(otherDiseaseTwo);
    }

    @Override
    public List<OtherDiseaseTwo> getById(String id) {
        return otherDiseaseTwoDao.getById(id);
    }

    @Override
    public List<OtherDiseaseTwo> getAll() {
        return otherDiseaseTwoDao.getAll();
    }

    @Override
    public boolean delete(OtherDiseaseTwo otherDiseaseTwo) {
        return otherDiseaseTwoDao.delete(otherDiseaseTwo);
    }
}
